package com.example.wzh.rxdemo;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.wzh.advancelog.log.WzhLog;

/**
 * @author: zhwang37
 * @date: 2021/8/25 17:21
 * @email:zhwang37@iflytek.com
 * @describe:
 */
public class MyApplication extends Application {
    @SuppressLint("StaticFieldLeak")
    private static Context context;

    @SuppressWarnings({"unused", "RedundantSuppression"})
    public static Context getContext() {
        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        WzhLog.init(this);
    }
}
